package com.videoStream.video.rtsp;

/**
 * @Author: wwy
 * @Date: 2022/7/14 10:22
 */
public class HkRtspBuild implements BuildRtsp {

    @Override
    public String build(String ip, String username, String password,int channel,String stream, short port) {

        StringBuilder rtspBuilder = new StringBuilder();
        rtspBuilder.append("rtsp://")
                .append(username)
                .append(":")
                .append(password)
                .append("@")
                .append(ip)
                .append(":")
                .append(port)
                .append("/h264/ch")
                .append(channel)
                .append("/")
                .append(stream)
                .append("/av_stream");
        return rtspBuilder.toString();
    }
}
